package com.iwhalecloud.bss.kite.cucc.service.shoppingcart.query;

import com.iwhalecloud.bss.kite.client.api.shoppingcart.query.IQueryShoppingCartObjectService;
import com.iwhalecloud.bss.kite.client.api.shoppingcart.vo.UserInfoInSceneVO;
import com.iwhalecloud.bss.kite.client.api.shoppingcart.vo.UserOfferObjInstRelVO;
import com.iwhalecloud.bss.kite.service.shoppingcart.bo.QueryShoppingCartObjectBO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QueryShoppingCartObjectService implements IQueryShoppingCartObjectService {

    @Autowired
    QueryShoppingCartObjectBO queryShoppingCartObjectBO;

    /**
     * 查询【当前场景待录入状态的】+待结算+待收费</br>
     */
    @Override
    public List<UserInfoInSceneVO> listShopCarCurSceAndSettAndChargProdInsts(String staffId, String custId,
        String currSceneInstId, String accNum, List<String> prodIdList) {
        return queryShoppingCartObjectBO.listShopCarCurSceAndSettAndChargProdInsts(staffId, custId, currSceneInstId,
            accNum, prodIdList);
    }

    /**
     * 根据客户ID和工号ID查询购物车中的明细数据</br>
     * OldAccNumDTO 组装成明细数据对象</br>
     */
    @Override
    public List<UserOfferObjInstRelVO> listShoppingCartAllOfferObjInstRels(String prodId, String searchValue,
        String staffId, String custId) {
        return queryShoppingCartObjectBO.listShoppingCartAllOfferObjInstRels(prodId, searchValue, staffId, custId);
    }

}
